import request from '@/utils/request'

// 查询备品备件客户管理列表
export function listClients(query) {
  return request({
    url: '/sparepart/clients/list',
    method: 'get',
    params: query
  })
}

// 查询备品备件客户管理详细
export function getClients(beiId) {
  return request({
    url: '/sparepart/clients/' + beiId,
    method: 'get'
  })
}

// 新增备品备件客户管理
export function addClients(data) {
  return request({
    url: '/sparepart/clients',
    method: 'post',
    data: data
  })
}

// 修改备品备件客户管理
export function updateClients(data) {
  return request({
    url: '/sparepart/clients',
    method: 'put',
    data: data
  })
}

// 删除备品备件客户管理
export function delClients(beiId) {
  return request({
    url: '/sparepart/clients/' + beiId,
    method: 'delete'
  })
}

// 导出备品备件客户管理
export function exportClients(query) {
  return request({
    url: '/sparepart/clients/export',
    method: 'get',
    params: query
  })
}
